public class ContactSearch {
    public static List<Contact> searchForContacts(String lastName, String mailingPostCode){
        List<Contact> contactList = [SELECT ID, Name FROM Contact WHERE LastName = :lastName and MailingPostalCode = :mailingPostCode];
        return contactList;
    }
    
}